<template>
  <div id="app">
    
   <template v-if="route.path.startsWith('/user')">
    <router-view />
   </template>

   <template v-else>
    <BasicLayout />
   </template>

  </div>
</template>

<style>
</style>

<script setup lang="ts">
import BasicLayout from "@/layouts/BasicLayout";  //这样写别改
import { onMounted } from "vue";
import { useRoute } from "vue-router";

const route=useRoute();

const doInit=()=>{
  console.log("hello 欢迎来到我的项目");
};

onMounted(()=>{
   doInit();
});

</script>